﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TISS_Add_in
{
    public class SequencialTransacaoException : Exception
    {
        #region Private Properties
        
        // System Exception that is thrown 
        private Exception innerException;
        // Custom Message 
        private string customMessage;

        #endregion
        #region Public Properties

        /// <summary>
        /// Public accessor of customMessage
        /// </summary>
        public string CustomMessage
        {
            get { return this.customMessage; }
        }

        #endregion
        #region Constructor

        public SequencialTransacaoException(Exception exception, string customMessage)
        {
            this.innerException = exception;
            this.customMessage = customMessage;
        }

        #endregion
    }
}
